<?php
class Category_model extends CI_Model{
	function __construct(){
        // Call the Model constructor
        parent::__construct();
    }    
    public function getAllCategory($activate){
    	try{
    		$query = $this->db->query("CALL fontend_getCategoryHome(".intval($activate).")");
    		$result = $query->result_array();
    		
			return $result;
		}
    	catch(Exception $e){
    		log_message('error', $e->getMessage());
    	}
    }    
}